package com.bai.common;

import lombok.Getter;

/**
 * @author bai
 * @date 2023年03月07日 18:30
 * 枚举返回类
 */

@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    SERVICE_ERROR(2012,"服务异常"),
    LOGIN_ERROR(204,"认证失败"),
    LOGIN_AUTH(208,"未登录"),
    PERMISSION(209,"没有权限");

    private Integer code;
    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
